/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Traffic;

//A TrafficSingle represents one of the sets of states that the lights will go through.
public class TrafficSignal
{
    //The state each light has in this single
    public LightState north, south, east, west, northEast, southWest, eastSouth, westNorth;
    //The Duration of this single (in secs)
    public int duration;

    //Constructor: Sets the state of each light in this single.
    TrafficSignal(LightState n, LightState s, LightState e, LightState w,
            LightState ne, LightState sw, LightState es, LightState wn, int dur)
    {
        north = n;
        south = s;
        east = e;
        west = w;
        northEast = ne;
        southWest = sw;
        eastSouth = es;
        westNorth = wn;
        duration = dur;
    }
    
}
